{template 'common/header'}
<ul class="nav nav-tabs">
    <li class="active" ><a href="{php echo url('sms/dict/list');}">短信项目信息列表</a></li>
    <li><a href="{php echo url('sms/dict/post');}">增加短信项目信息</a></li>
</ul>
<div class="panel panel-info " id="query">
    <div class="panel-heading">
        <a class="accordion-toggle" data-toggle="collapse" href="#collapseOne">
            筛选
        </a>
    </div>
    <div id="collapseOne"  class="panel-body panel-collapse collapse in ">
        <form action="{php echo url('sms/dict/list');}" method="post" class="form-horizontal " role="form">
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 col-lg-1 control-label">名称</label>
                <div class="col-sm-3">
                        <input type="text" name="title" value="{$_GPC['title']}" placeholder="请输入名称">
                </div>
                <div class="pull-right col-xs-12 col-sm-2 col-lg-1">
                    <button class="btn btn-block"><i class="fa fa-search"></i> 搜索</button>
                </div>
            </div>
        </form>
    </div>

</div>

<div class="clearfix">
    <div class="table-responsive">
        <table class="table table-hover">
            <thead>
            <tr>
                <th >名称</th>
                <th >显示顺序</th>
                <th style="width:110px;">操作</th>
            </tr>
            </thead>
            <tbody>
            {loop $list $row}
            <tr>
                <td>{$row['title']}</td>
                <td>{$row['disporder']}</td>
                <td>
                    <a href="{php echo url('sms/dict/post', array('id'=> $row['id']))}">编辑</a>
                    <a href="{php echo url('sms/dict/del', array('id'=> $row['id']))}">删除</a>
                </td>
            </tr>
            {/loop}
            </tbody>
        </table>
        {$pager}
    </div>
</div>
{template 'common/footer'}